package com.sky.service.user;

import com.sky.pojo.AddressBook;
import com.sky.result.Result;

import java.util.List;

public interface AddressBookService {
    void insert(AddressBook addressBook);

    Result<List<AddressBook>> selectAll();

    Result<AddressBook> selectDefaultAddresss();

    Result setDefault(AddressBook addressBook);

    Result<AddressBook> selectById(Long id);

    void update(AddressBook addressBook);

    Result deleteById(Long id);
}
